const go/types.invalidArg

25 uses

	go/types (current package)
		builtins.go#L216: 				check.errorf(x, code, invalidArg+"%s for built-in %s", x, bin.name)
		builtins.go#L239: 			check.errorf(x, InvalidClear, invalidArg+"cannot clear %s: argument must be (or constrained by) map or slice", x)
		builtins.go#L344: 			check.errorf(x, InvalidComplex, invalidArg+"arguments have type %s, expected floating-point", x.typ)
		builtins.go#L373: 			check.errorf(x, InvalidCopy, invalidArg+"copy expects slice arguments; found %s and %s", x, y)
		builtins.go#L378: 			check.errorf(x, InvalidCopy, invalidArg+"arguments to copy %s and %s have different element types %s and %s", x, y, dst.elem, src.elem)
		builtins.go#L397: 				check.errorf(x, InvalidDelete, invalidArg+"%s is not a map", x)
		builtins.go#L401: 				check.errorf(x, InvalidDelete, invalidArg+"maps of %s must have identical key types", x)
		builtins.go#L468: 			check.errorf(x, code, invalidArg+"argument has type %s, expected complex type", x.typ)
		builtins.go#L506: 			check.errorf(arg0, InvalidMake, invalidArg+"cannot make %s: no core type", arg0)
		builtins.go#L509: 			check.errorf(arg0, InvalidMake, invalidArg+"cannot make %s; type must be slice, map, or channel", arg0)
		builtins.go#L527: 			check.error(argList[1], SwappedMakeArgs, invalidArg+"length and capacity swapped")
		builtins.go#L552: 				check.errorf(a, InvalidMinMaxOperand, invalidArg+"%s cannot be ordered", a)
		builtins.go#L564: 					check.errorf(a, MismatchedTypes, invalidArg+"mismatched types %s (previous argument) and %s (type of %s)", x.typ, a.typ, a.expr)
		builtins.go#L713: 			check.errorf(arg0, BadOffsetofSyntax, invalidArg+"%s is not a selector expression", arg0)
		builtins.go#L728: 			check.errorf(x, MissingFieldOrMethod, invalidArg+"%s has no single field %s", base, sel)
		builtins.go#L735: 			check.errorf(arg0, InvalidOffsetof, invalidArg+"%s is a method value", arg0)
		builtins.go#L739: 			check.errorf(x, InvalidOffsetof, invalidArg+"field %s is embedded via a pointer in %s", sel, base)
		builtins.go#L806: 			check.errorf(x, InvalidUnsafeSlice, invalidArg+"%s is not a pointer", x)
		builtins.go#L827: 			check.errorf(x, InvalidUnsafeSliceData, invalidArg+"%s is not a slice", x)
		builtins.go#L877: 			check.errorf(x, Test, invalidArg+"%s is not a boolean constant", x)
		errors.go#L225: 	invalidArg = "invalid argument: "
		index.go#L370: 		check.errorf(&x, InvalidIndex, invalidArg+"index %s out of bounds [0:%d]", x.val.String(), max)
		index.go#L391: 		check.errorf(x, code, invalidArg+"%s %s must be integer", what, x)
		index.go#L398: 			check.errorf(x, code, invalidArg+"%s %s must not be negative", what, x)
		index.go#L404: 			check.errorf(x, code, invalidArg+"%s %s overflows int", what, x)